package com.capgemini.scaffold.service;

import com.capgemini.scaffold.model.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import com.capgemini.scaffold.model.request.DictAddReq;
import com.capgemini.scaffold.model.request.DictQueryReq;

import java.util.List;

/**
* @author llf
* @description 针对表【dict(字典表)】的数据库操作Service
* @createDate 2022-10-18 16:20:04
*/
public interface DictService extends IService<Dict> {
    /**
     * 获取position列表
     *
     * @return
     */
    List<Dict> getPosition();

    /**
     * 获取department列表
     *
     * @return
     */
    List<Dict> getDepartment();

    /**
     * 获取level列表
     *
     * @return
     */
    List<Dict> getLevel();

    /**
     * 根据字典名，字典类型和字典创建时间查询
     *
     * @param dictReq
     * @return
     */
    List<Dict> queryDict(DictQueryReq dictReq);
//
//    /**
//     * 空参查询
//     *
//     * @return
//     */
//    List<Dict> queryAll();

    /**
     * 添加字典
     *
     * @param dictAddReq
     * @return
     */
    Dict addDict(DictAddReq dictAddReq);

    /**
     *
     * @return
     */
    List<String> getDictGroup();
    /**
     * 更新字典
     *
     * @param dictAddReq
     * @return
     */
    Dict updateDict(DictAddReq dictAddReq);

    /**
     * 删除字典
     *
     * @param codeId
     * @return
     */
    boolean deleteDict(Integer codeId);

    /**
     * 翻译字典
     *
     * @param dictId
     * @return
     */
    String translateDict(String dictId);
}
